<?php

function getFirstPic($str='')
{
    $picArr = explode(",", $str);
    return $picArr[0];
}

function getSaveName($str='')
{
    return time().'_'.mt_rand();
}